<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'horizontalForm',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>
<fieldset>
<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Kelurahan</label>
        <div class="controls">
            <?php echo $form->textField($model,'kode_kel',array('class'=>'span5','maxlength'=>7)); ?>
        </div>
    </div>

<div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Kode Kecamatan</label>
        <div class="controls">
            <?php echo $form->textField($model,'kode_kec',array('class'=>'span5','maxlength'=>3)); ?>
        </div>
    </div>

<div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Nama kelurahan</label>
        <div class="controls">
            	<?php echo $form->textField($model,'nama_kel',array('class'=>'span5','maxlength'=>25)); ?>
        </div>
    </div>

	

	



<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
</div>

<?php $this->endWidget(); ?>
</fieldset>